<script type="text/javascript" src="modeles/jquery.js"></script>
<script type ="text/javascript" src="modeles/javascriptFonctions.js"></script>

<?php
	if(isset($_SESSION["message"]))
		{
			echo $_SESSION["message"];
			unset($_SESSION["message"]);
		}

echo'<h2>Ajouter un thème</h2>';

if($modif)
	echo'<form action="index.php?module=administration&amp;action=ajouterTheme&amp;'.CODE_THEME.'='.$theme->get_id().'" method="post">';
else
	echo'<form action="index.php?module=administration&amp;action=ajouterTheme" method="post">';
?>	<p>
		<label for="Nom">Nom du thème : </label>
		<input <?php if($modif) echo 'value="'.$theme->get_libelle().'"'?> id="nom" type="text" name="Nom" onFocus="blancNom()"/>
		<span id="erreur"></span>
	</p>
	<p>
		<?php if($modif)
			echo'<input class="Ligne2" type="submit" value="Modifier" name="Modifier" onClick="return verifFormulaireTheme()"/>';
		else 
			echo'<input class="Ligne2" type="submit" value="Ajouter" name="Ajouter" onClick="return verifFormulaireTheme()"/>';
		?>
		<input class="Ligne2" type="submit" value="Annuler" name="Annuler"/>
	</p>
</form>